package com.culturesalon.dto;

import java.util.Date;

public class Shopcart {
	private Integer id;
	private String goodsName;
	private Double retailPrice;
	private Integer amount;
	private Double  totaoPrice;
	private Integer goodsid;
	private Integer userId;
	private String goodsPictureUrl;
	

	public Shopcart() {
		super();
		
	}


	public Shopcart(Integer id, String goodsName, Double retailPrice,
			Integer amount, Double totaoPrice, Integer goodsid, Integer userId) {
		super();
		this.id = id;
		this.goodsName = goodsName;
		this.retailPrice = retailPrice;
		this.amount = amount;
		this.totaoPrice = totaoPrice;
		this.goodsid = goodsid;
		this.userId = userId;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getGoodsName() {
		return goodsName;
	}


	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}


	public Double getRetailPrice() {
		return retailPrice;
	}


	public void setRetailPrice(Double retailPrice) {
		this.retailPrice = retailPrice;
	}


	public Integer getAmount() {
		return amount;
	}


	public void setAmount(Integer amount) {
		this.amount = amount;
	}


	public Double getTotaoPrice() {
		return totaoPrice;
	}


	public void setTotaoPrice(Double totaoPrice) {
		this.totaoPrice = totaoPrice;
	}


	public Integer getGoodsid() {
		return goodsid;
	}


	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}


	public Integer getUserId() {
		return userId;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public String getGoodsPictureUrl() {
		return goodsPictureUrl;
	}


	public void setGoodsPictureUrl(String goodsPictureUrl) {
		this.goodsPictureUrl = goodsPictureUrl;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((goodsName == null) ? 0 : goodsName.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Shopcart other = (Shopcart) obj;
		if (goodsName == null) {
			if (other.goodsName != null)
				return false;
		} else if (!goodsName.equals(other.goodsName))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		return true;
	}


	@Override
	public String toString() {
		return "Shopcart [id=" + id + ", goodsName=" + goodsName
				+ ", marketPrice=" + retailPrice + ", amount=" + amount
				+ ", totaoPrice=" + totaoPrice + ", goodsid=" + goodsid
				+ ", userId=" + userId + "]";
	}


	
	


	
}
